package com.lm.location.action;

import java.util.List;

import com.lm.location.dao.LocationDao;

public class SearchLocation extends LocationAction {

	public String searchLocation() throws Exception {	
		
		System.out.println("searched location................"+getName());
		Location loc = getLocationDetails();
		LocationDao locDao = new LocationDao();
		List locList = locDao.searchLocation(loc);
		setLocationList(locList);
		return SUCCESS;
	}
	
public String defaultSearchLocation() throws Exception {	
		
		System.out.println("searched location................"+getName());
		Location loc = getLocationDetails();
		LocationDao locDao = new LocationDao();
		List locList = locDao.defaultSearchLocation(loc);
		setLocationList(locList);
		return SUCCESS;
	}

public String searchToApproveLocation() throws Exception {	
	
	System.out.println("searched location................"+getName());
	Location loc = getLocationDetails();
	LocationDao locDao = new LocationDao();
	List locList = locDao.searchToApproveLocation(loc);
	setLocationList(locList);
	return SUCCESS;
}

}
